/* src/style.css */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    color: #2c3e50;
    background-color: #f5f7fa;
    line-height: 1.6;
  }
  
  h1 {
    text-align: center;
    color: #3498db;
    margin-bottom: 30px;
    font-weight: 300;
    font-size: 36px;
    letter-spacing: 1px;
  }
  
  .todo-container {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    transition: all 0.3s ease;
  }
  
  .input-container {
    position: relative;
    margin-bottom: 20px;
  }
  
  .todo-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: white;
  }
  
  .todo-input:focus {
    outline: none;
    box-shadow: 0 2px 15px rgba(52, 152, 219, 0.2);
  }
  
  .todo-input::placeholder {
    color: #bdc3c7;
  }
  
  .todo-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
    background-color: white;
    animation: fadeIn 0.3s ease;
  }
  
  .todo-item:last-child {
    border-bottom: none;
  }
  
  .todo-item:hover {
    background-color: #f9fbfc;
  }
  
  .todo-item.completed {
    background-color: #f9fbfc;
  }
  
  .todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #95a5a6;
  }
  
  .todo-text {
    flex-grow: 1;
    margin: 0 15px;
    transition: all 0.3s ease;
  }
  
  .todo-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #3498db;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .todo-checkbox:checked {
    background-color: #3498db;
  }
  
  .todo-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .todo-delete {
    background-color: transparent;
    color: #e74c3c;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.2s ease;
  }
  
  .todo-delete:hover {
    background-color: #fbdcda;
    opacity: 1;
  }
  
  .todo-filters {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    padding: 14px 20px;
    background-color: #f9fbfc;
    border-top: 1px solid #ecf0f1;
    align-items: center;
  }
  
  .remaining-indicator {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #7f8c8d;
  }
  
  .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #3498db;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
  }
  
  .filter-button {
    background-color: white;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    margin: 0 2px;
    font-size: 14px;
    transition: all 0.2s ease;
  }
  
  .filter-button:hover {
    border-color: #3498db;
    color: #3498db;
  }
  
  .filter-button.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
  }
  
  .filter-button.clear-btn {
    color: #e74c3c;
    border-color: #f9dada;
  }
  
  .filter-button.clear-btn:hover {
    background-color: #fef2f2;
    border-color: #e74c3c;
  }
  
  .filter-group {
    display: flex;
  }
  
  .todo-stats {
    margin-top: 20px;
    text-align: center;
    color: #7f8c8d;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }
  
  .stats-cards {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  
  .stat-card {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8fafc;
    min-width: 80px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }
  
  .stat-card.active {
    background-color: #ebf5ff;
    color: #3498db;
  }
  
  .stat-card.completed {
    background-color: #edfbf3;
    color: #2ecc71;
  }
  
  .stat-card-value {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.3;
  }
  
  .stat-card-label {
    font-size: 14px;
    opacity: 0.8;
  }
  
  .todo-stats p {
    margin: 5px 0;
  }
  
  .task-count {
    font-weight: 500;
    color: #3498db;
    margin-top: 20px;
    margin-bottom: 15px;
  }
  
  .progress-container {
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 20px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
  }
  
  .progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 20px;
    transition: width 0.5s ease;
  }
  
  .progress-label {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 14px;
    color: #3498db;
    font-weight: 500;
  }
  
  .last-saved {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 15px;
  }
  
  .empty-list {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }
  
  .empty-list-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #bdc3c7;
  }
  
  .todo-header {
    position: relative;
    padding: 20px 20px 15px;
    background-color: #3498db;
    color: white;
    border-radius: 10px 10px 0 0;
  }
  
  .todo-title {
    margin: 0;
    font-weight: 400;
  }
  
  .task-stats {
    display: flex;
    margin-top: 10px;
    gap: 15px;
  }
  
  .stat-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
  }
  
  .stat-badge.active {
    background: rgba(255, 255, 255, 0.3);
  }
  
  .stat-badge.completed {
    background: rgba(46, 204, 113, 0.3);
  }
  
  .stat-badge.total {
    background: rgba(255, 255, 255, 0.15);
  }
  
  .stat-icon {
    margin-right: 6px;
  }
  
  .stat-number {
    font-weight: 500;
  }
  
  /* 添加一些动画效果 */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* 响应式调整 */
  @media (max-width: 480px) {
    .todo-filters {
      flex-direction: column;
      gap: 10px;
    }
    
    .filter-group {
      width: 100%;
      justify-content: center;
    }
  }